package com.neouton.crm.managerRefundRecords.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neouton.crm.refundRecords.entity.RefundRecordsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ManagerRefundRecordsMapper {


    Boolean saveRefundInfo(RefundRecordsVO refundRecords);

    IPage<RefundRecordsVO> getRedListByPage(@Param("page") IPage<RefundRecordsVO> page, @Param("refundRecords") RefundRecordsVO refundRecords, @Param("orderBy") String orderBy);

    List<RefundRecordsVO> getRedList(@Param("refundRecords") RefundRecordsVO refundRecords);

    Boolean updateRefundInfo(@Param("refundRecords") RefundRecordsVO refundRecords);

    Double getPayMoneySum(@Param("refundRecords") RefundRecordsVO refundRecords);

    RefundRecordsVO selectRefundById(Integer id);

    Boolean deleteRefundById(Integer id);

    RefundRecordsVO getRefundInfoByApprovalId(Integer approvalId);
}




